const { DataTypes } = require('sequelize');
const sequelize = require('../init/sequelize');

const Dish = sequelize.define('dish', {
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        comment: 'id',
    },
    dishName: {
        type: DataTypes.STRING(50),
        allowNull: true,
    },
    pic:{
        type: DataTypes.STRING(50),
        allowNull: true,
    },
    price:{
        type: DataTypes.STRING(50),
        allowNull: true,
    },
    status:{
        type: DataTypes.STRING(50),
        allowNull: true,
    },
    time:{
        type: DataTypes.STRING(50),
        allowNull: true,
    }

}, {
    timestamps: false, // 禁用自动添加的时间戳字段
});

module.exports = Dish;